#include "libutilsconfig.h"
#include "UConsole.h"
#include "iostream"
#if defined(UNICODE) || defined(_UNICODE)
typedef std::wstring tstring;
typedef    std::stringstream  tstringstream;
	#define tcout std::wcout   
#else
typedef std::string tstring;
typedef    std::wstringstream  tstringstream;
#define tcout std::cout	
#endif

void LIB_NS::UConsole::Print( TEXT_COLOR type,const std::string& value )
{
	SetTextStyle(type,true);

	std::cout<<value<<std::endl;

	RestoreTextStyle();
}


void LIB_NS::UConsole::Print( TEXT_COLOR type,const std::wstring& value )
{
	SetTextStyle(type,true);

	std::wcout<<value<<std::endl;

	RestoreTextStyle();
}

void LIB_NS::UConsole::RestoreTextStyle()
{
	SetTextStyle(TEXT_NORMAL,false);
}
